#include "ag.h"
#include "io.h"
#include <rtl/print.h>
#include <rtl/hash.h>
#include <rtl/km/cpu.h>
#include <rtl/string.h>
#include <rtl/memory.h>

#include "io.h"

#define MODULE "TEST"

typedef struct _AG_TEST
{
    BOOLEAN(*Entry)
    ();
} AG_TEST, *PAG_TEST;

AG_TEST AgpTests[] = {};

BOOLEAN AgpRunTest(INT I)
{
    if (I >= ARRAY_SIZE(AgpTests))
    {
        RtlPrintf("[%s] No such test %d\n", MODULE, I);
        return FALSE;
    }

    PAG_TEST Test = &AgpTests[I];
    if (!Test->Entry())
    {
        RtlPrintf("[%s] Test %d FAILED\n", MODULE, I);
        return FALSE;
    }

    RtlPrintf("[%s] Test %d SUCCEEDED\n", MODULE, I);
    return TRUE;
}
